#include "body_interface.hpp"
#include "interface_ids.hpp"

body_interface::body_interface()
{
}

void body_interface::show( bool show_interface )
{
}

void body_interface::assign( wxPanel *parent )
{
	m_parent = parent;

	m_new = new wxButton(parent, ID_BUTNEWBODY, wxT("New"), wxPoint(109, 164), wxSize(55,25));
	m_delete = new wxButton(parent, ID_BUTDELETEBODY, wxT("Delete"), wxPoint(170, 164), wxSize(55,25));
	m_static = new wxButton(parent, ID_BUTSTATICBODY, wxT("Static"), wxPoint(231, 159), wxSize(94,30));
	m_kinematic = new wxButton(parent, ID_BUTKINEMATICBODY, wxT("Kinematic"), wxPoint(331, 159), wxSize(94,30));
	m_dynamic = new wxButton(parent, ID_BUTDYNAMICBODY, wxT("Dynamic"), wxPoint(431, 159), wxSize(94,30));

	m_browse_animation = new wxButton(parent, ID_BUTBROWSEANIMATION, wxT("Browse"), wxPoint(470, 202), wxSize(55,25));
	m_active_position = new wxButton(parent, ID_BUTACTIVEPOSITION, wxT("inactive"), wxPoint(227, 284), wxSize(47,19));

	m_active_kinematic = new wxButton(parent, ID_BUTACTIVEKINEMATIC, wxT("inactive"), wxPoint(478, 386), wxSize(47,19));
	m_append_kinematic = new wxButton(parent, ID_BUTAPPENDKINEMATIC, wxT("Append"), wxPoint(400, 434), wxSize(55,25));
	m_delete_kinematic = new wxButton(parent, ID_BUTDELETEKINEMATIC, wxT("Delete"), wxPoint(461, 434), wxSize(55,25));

	m_bodys  = new wxListBox(parent, ID_LISTBODYS, wxPoint(10, 163), wxSize(92, 667));
	m_kinematics  = new wxListBox(parent, ID_LISTKINEMATICS, wxPoint(392, 233), wxSize(133, 147));

	m_name.assign(parent, ID_TXTBODYNAME, wxT(""), wxPoint(155, 231),    wxSize(119, 20), wxTE_NO_VSCROLL, wxT("name"));
	m_animation.assign(parent, ID_TXTANIMFILE, wxT(""), wxPoint(170, 205),    wxSize(294, 20), wxTE_NO_VSCROLL, wxT("animation"));
	m_angle.assign(parent, ID_TXTANGLE, wxT(""), wxPoint(155, 257),    wxSize(119, 20), wxTE_NO_VSCROLL, wxT("angle"));
	m_positionX.assign(parent, ID_TXTPOSX, wxT(""), wxPoint(155, 283),    wxSize(33, 20), wxTE_NO_VSCROLL, wxT("position"));
	m_positionY.assign(parent, ID_TXTPOSY, wxT(""), wxPoint(194, 283),    wxSize(33, 20), wxTE_NO_VSCROLL, wxT(""));
	m_dampening.assign(parent, ID_TXTDAMPENING, wxT(""), wxPoint(182, 309),    wxSize(92, 20), wxTE_NO_VSCROLL, wxT("dampening"));
	m_angular_dampening.assign(parent, ID_TXTANGULARDAMP, wxT(""), wxPoint(225, 335),    wxSize(49, 20), wxTE_NO_VSCROLL, wxT("angular dampening"));
	m_kineX.assign(parent, ID_TXTKINEX, wxT(""), wxPoint(392, 386),    wxSize(39, 20), wxTE_NO_VSCROLL, wxT("Pos"));
	m_kineY.assign(parent, ID_TXTKINEY, wxT(""), wxPoint(433, 386),    wxSize(39, 20), wxTE_NO_VSCROLL, wxT(""));
	m_kine_angle.assign(parent, ID_TXTKINEANGLE, wxT(""), wxPoint(400, 409),    wxSize(39, 20), wxTE_NO_VSCROLL, wxT("Ang"));
	m_kine_time.assign(parent, ID_TXTKINETIME, wxT(""), wxPoint(465, 409),    wxSize(39, 20), wxTE_NO_VSCROLL, wxT("Time"));

	m_fixed_rotation = new wxCheckBox(parent, ID_CHECKFIXEDROT, wxT("Fixed Rotation"), wxPoint(121, 361));
}